[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
r sample makes no use of it. Sorry, but I don’t get it. > \defineenumeration > [theorem] > [ > text=Theorem, > title=yes, > width=fit, > distance=0.2em, > alternative=serried, > ] > \definetextbackground[GrayBackground][ > locatio

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
orry, but I don’t get it. > \defineenumeration >   [theorem] >   [ >     text=Theorem, >     title=yes, >     width=fit, >     distance=0.2em, >     alternative=serried, >   ] > \definetextbackground[GrayBackground][ >   location=paragraph, >   background=color, >

[NTG-context] Struggling with the distance and right margin text

2024-03-15 Thread Ursula Hermann
[MyInMargin][inleft] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground[GrayBackground][ location

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
apersize[MyBook][A4] %Would print MyBook-size pages on A4 paper > \setupbodyfont[Times New Roman,12.55pt] > \definemargindata [MyInMargin][inright] > \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] > \defineenumeration > [theorem] > [

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
pages on A4 paper \setupbodyfont[Times New Roman,12.55pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em

[NTG-context] Re: \in, \at, and labletext

2024-02-28 Thread Pablo Rodriguez via ntg-context
rst document with a theorem]). Other than that, I must confess I cannot imagine what is the issue you might be facing. But don’t hesitate to ask with a more verbose description. > Sorry, I have no example. Here you have one: \setupinteraction[state=start, focus=standard] \defineenumeration[theo

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Wolfgang Schuster
context(text) end end \stopluacode % without that line there is no problem \setupinteraction[state=start] \defineenumeration[enu][text=Enu] \defineenumeration[enu][text=Enu,title=yes] \unprotect \def\mc{\dosingleempty\do_my_command} \def\do_my_command[#1]#2{% \iffirstargumen

[NTG-context] Re: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-29 Thread Taco Hoekwater
to_hash(keywords) > > if cfg['emph'] ~= nil then > context("\\emph{" .. text .. "}") > elseif cfg['bold'] ~= nil then > context("\\bold{" .. text .. "}") > else > context(text) > end > end > \stopluacode > > % without tha

[NTG-context] Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition

2024-01-25 Thread Gerion Entrup
nd end \stopluacode % without that line there is no problem \setupinteraction[state=start] \defineenumeration[enu][text=Enu] \unprotect \def\mc{\dosingleempty\do_my_command} \def\do_my_command[#1]#2{% \iffirstargument{% \ctxlua{userdata.my_command('#1', [==[#2]==])}% }\el

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
What do you expect here to pass as argument to the oldfact command? > I will pass something like n, 5, 10 etc. > > This works here: > > \defineenumeration > [proof] > [closesymbol={\mathematics{\square}}] > > \starttext > > \startproof > \samplefile{lorem}

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster
/maps/36/09.pdf page no. 28 then proof is defined as \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title=no, %this is the default closesymbol={\mathematics{\square}}, style=normal] But the closessymbol does not work. I will create a minimum working example and post

[NTG-context] Re: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
)$)rectangle($(mynode.north east)+(0.3ex,0.3ex)$);} } But I do not know how to make it work in ConTeXt as I am not very familiar with ConTeXt. If you see https://www.ntg.nl/maps/36/09.pdf page no. 28 then proof is defined as \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title

[NTG-context] Re: Problem with the paragraph

2023-12-18 Thread Ursula Hermann
w Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried, ] \definetextbackground

[NTG-context] Re: Problem with the paragraph

2023-12-15 Thread Bruce Horrocks
\setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alte

[NTG-context] Re: Problem with the paragraph

2023-12-14 Thread Wolfgang Schuster
=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem]   [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried,   ] \definetextbackground[paragraph][ location=paragraph, background=color, backgroundcolor=lightgray, leftoffset=.5\bodyfontsize

[NTG-context] Problem with the paragraph

2023-12-13 Thread Ursula Hermann
\setupbodyfont[Times New Roman, 12.2pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.2em, alternative=serried

[NTG-context] Colored Paragraph

2023-12-05 Thread Ursula Hermann
Dear List, i have this example: \setupbodyfont[modern,10pt] \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em

[NTG-context] Re: It works after a few changes but ..

2023-11-23 Thread Ursula Hermann
Dear List, After once more a little changes this is the example I wanted, and it is perfekt: \definemargindata [MyInMargin][inright] \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm] \defineenumeration [theorem] [ text=Theorem, title=yes

[NTG-context] Re: It works after a few changes but ..

2023-11-21 Thread Bruce Horrocks
, > distance=0.5em, > headstyle=bold, > titlestyle=normal, > way=bytext, > conversion=numbers] > \defineenumeration > [theorem] > [text=Theorem, > title=yes, > style=italic, > list=all, > listtext={Theorem }] > \starttext > \margintext{

[NTG-context] Re: It works after a few changes but ..

2023-11-20 Thread Ursula Hermann
25ex, width=7cm] \setupenumerations [ before={\blank[big]}, after={\blank[big]}, location=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=normal, way=bytext, conversion=numbers] \defineenumeration [theorem] [text=Theorem, title=yes, style=italic,

[NTG-context] Re: It works after a few changes but ..

2023-11-18 Thread Bruce Horrocks
\}\blackrule[color=black, height=0.25ex, width=7cm] \setupenumerations [ before={\blank[big]}, after={\blank[big]}, location=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=normal, way=bytext, conversion=numbers] \defineenumeration [theorem] [text=Theor

[NTG-context] Re: It works after a few changes but ..

2023-11-17 Thread Ursula Hermann
wrote: > Dear List, > After a few changes i have here an example: > It works, but what I wanted to know is why are there > > round brackets after writing \starttheroem if i compile it. > Should be without round brackets. Are you looking for something like this? \defineenum

[NTG-context] Re: It works after a few changes but ..

2023-11-17 Thread Aditya Mahajan
for something like this? \defineenumeration [theorem] [ text=Theorem, title=yes, width=fit, distance=0.5em, alternative=serried, ] \starttext \starttheorem The square on the hypotenuse is equal to the sum of the squares on the other two sides. Ach is das schö

[NTG-context] It works after a few changes but ..

2023-11-17 Thread Ursula Hermann
[ before={\blank[big]}, after={\blank[big]}, location=serried, width=broad, distance=0.5em, headstyle=bold, titlestyle=normal, way=bytext, conversion=numbers] \defineenumeration [theorem] [text=Theorem, title=yes, style=italic, list=all

[NTG-context] Re: Text and Remark

2023-11-17 Thread Ursula Hermann
An: ntg-context mailing list Betreff: [NTG-context] Re: Text and Remark On 16 Nov 2023, at 12:52, Ursula Hermann wrote: > > \defineenumeration > [remark] > [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in] Does [alternative=left,text=Rema

[NTG-context] Re: Text and Remark

2023-11-16 Thread Bruce Horrocks
On 16 Nov 2023, at 12:52, Ursula Hermann wrote: > > \defineenumeration > [remark] > [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in] Does [alternative=left,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in

[NTG-context] Text and Remark

2023-11-16 Thread Ursula Hermann
Dear List: I would like to have text next to the Remark Number \setupindenting[yes,small,first] \defineenumeration [remark] [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in] \starttext \remark An enumeration (\tex{remark}, in this case

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Wolfgang Schuster
Title) Code Fragment 1.2 (The Second Title) Code Fragment 2.1 (The Third Title) MWE: [...] \defineenumeration   [Counter]   [title=yes,    alternative=empty,    before=\startCountFramedText,    after=\stopCountFramedText] \defineenumeration [Counter] [ title=yes, alternative=empty

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
yfont=11pt, style={\tt}] \defineenumeration [Code] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText, left={\somenamedheadnumber{chapter}{current}.}] \starttext \startchapter [title=first] \startCode [title={The First Title}, refer

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
e title. Amemd the \defineenumeration as follows: \defineenumeration [Counter] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText, left={\somenamedheadnumber{chapter}{current}:}] — Bruce Horrock

[NTG-context] Framed Text with Chapter Numbers as Counter

2023-09-16 Thread Jeroen
CountFrame} {} \defineenumeration [Counter] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText] \starttext \startchapter [title=first] \startCounter [title={The First Title}, reference={tit1}] Some verbatim text \stopCounter \startCounte

[NTG-context] Verbatim Textbox with Reference NUmbering

2023-09-09 Thread Jeroen
}{} % Add the enumeration \defineenumeration [Counter] [text=, alternative=empty, before={\FrameTitle{Counter \getnumber[Counter]} \startFunnyText}, after={\stopFunnyText}] \starttext \startCounter First example \stopCounter \startCounter Second example \stopCounter

[NTG-context] Enable interaction on custom apa cite variant

2023-08-19 Thread Jethro Djan
[medium]}, alternative=serried, right=, headcommand=\groupedcommand{}{.}, distance=0.5em, width=fit, headstyle=bold, titlestyle=bold, way=bytext, conversion=numbers, prefix=chapter, list=all, title=yes, indentnext=no, ] \defineenumeration[definition][ text=Defintion, style

[NTG-context] Key distance with enumeration

2023-07-27 Thread Fabrice Couvreur
=, titlestyle=normal, prefix=no, prefixsegments=chapter, way=bychapter, prefixconversionset=digit, counter=, headcommand=\groupedcommand{}{.}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=broad] \defineenumeration [definition] [text

[NTG-context] Userdata environment

2023-04-03 Thread Fabrice Couvreur via ntg-context
{}{}, titlecommand=\groupedcommand{(}{)}, width=fit] \defineenumeration [definition] [text=Définition, number=no, style=italic] \defineenumeration [exemple] [text=Exemple, number=no, style=normal] \definemargindata[marginfigure][inright] \setupmargindata [marginfigure][command

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
b/mdframed/mdframed.pdf) > > > > I have searched in the wiki and found \defineenumeration: > > This is near of that what I need. However I explicitly does not need an > > enumeration (so no number or counter). Also I am not sure if I can set a > > background

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Henning Hraban Ramm via ntg-context
look like (it is copied out of page 4: Definition: Inhomogeneous linear of the mdframed documentation: http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf) I have searched in the wiki and found \defineenumeration: This is near of that what I need. However I explicitly doe

[NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Gerion Entrup via ntg-context
omogeneous linear of the mdframed documentation: http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf) I have searched in the wiki and found \defineenumeration: This is near of that what I need. However I explicitly does not need an enumeration (so no number or counter). Also I am not sur

Re: [NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-31 Thread Yaroslav Beltukov via ntg-context
umber of the header in the document. As a > > result, the prefix from the external document is calculated using the > > structure of the current document. > > > > Here is the MWE, which consists of two files: > > foo.tex: > > > > \defineenumeration[remark

Re: [NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-30 Thread Hans Hagen via ntg-context
number of the header in the document. As a result, the prefix from the external document is calculated using the structure of the current document. Here is the MWE, which consists of two files: foo.tex: \defineenumeration[remark][prefix=yes, prefixsegments=chapter:section] \starttext Equations

Re: [NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-29 Thread Alan Braslau via ntg-context
ce to a section as a sequential number of the header in the > document. As a result, the prefix from the external document is > calculated using the structure of the current document. > > Here is the MWE, which consists of two files: > foo.tex: > > \defineenumeration[remark][prefix=ye

[NTG-context] Wrong prefix in cross references to formulas in external document

2023-01-29 Thread Yaroslav Beltukov via ntg-context
document is calculated using the structure of the current document. Here is the MWE, which consists of two files: foo.tex: \defineenumeration[remark][prefix=yes, prefixsegments=chapter:section] \starttext Equations: \in[eq1], \in[eq2], \in[eq3], \in[eq4] Sections: \in[sec1], \in[sec2], \in[sec3

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed   [ExampleHeadFrame]   [location=low,    background

[NTG-context] Defineenumeration head offset

2022-11-07 Thread Alexandre Christe via ntg-context
Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: \definetextbackground [textFrameEx] [ frame=off, framecolor=darkgreen, rulethickness=2ex, background=, location=paragraph, leftoffset=2.25ex, rightoffset=2.25ex

[NTG-context] Line up itemize list with answer block

2022-08-23 Thread Jan Willem Flamma via ntg-context
] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration     [question]     [text=Question, after={\blank[2*big]}, inbetween={\blank[nowhite]}, way=bychapter, prefixsegments=chapter, prefix=yes] \defineenumeration     [answer]     [counter=answer

Re: [NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
, > >title=yes, > >titleleft=, > >titleright=, > >titlestyle=normal, > >prefix=yes, > >prefixsegments=chapter, > >way=bychapter, > > headcommand=\groupedcommand{}{.}, > >numbercommand=\groupedcommand{}{}, > >

Re: [NTG-context] Special numbering

2022-08-17 Thread Aditya Mahajan via ntg-context
edcommand{}{}, >titlecommand=\groupedcommand{(}{)}, >width=broad] > > \defineenumeration >[definition] >[text=Définition, > number=yes, > style=italic] > > \defineenumeration >[proposition] >[text=Proposition, > number=yes,

[NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
, prefixsegments=chapter, way=bychapter, headcommand=\groupedcommand{}{.}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=broad] \defineenumeration [definition] [text=Définition, number=yes, style=italic] \defineenumeration [proposition

[NTG-context] Numbercommand and title

2022-08-12 Thread Fabrice Couvreur via ntg-context
{(}{)}, width=broad, way=bychapter, prefix=yes, prefixsegments=chapter, prefixconversionset=digit,] \defineenumeration [definition] [text=Définition, number=yes, style=italic] \starttext \startchapter [title={First Chapter}] \startdefinition [title={My first définition

Re: [NTG-context] Bug in counter

2022-07-04 Thread Wolfgang Schuster via ntg-context
Johann Birnick via ntg-context schrieb am 04.07.2022 um 18:29: Hey there, please consider: \starttext \defineenumeration[definition][text=Definition, alternative=serried] \setupnumber[definition][way=bysection, numbersection=yes

[NTG-context] Bug in counter

2022-07-04 Thread Johann Birnick via ntg-context
Hey there, please consider: \starttext \defineenumeration[definition][text=Definition, alternative=serried] \setupnumber[definition][way=bysection, numbersection=yes] \section{My section 1} \startdefinition My fist definition \stopdefinition

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
ou are certain that the there will be no multi-line item (i.e. item text is short enough that it fits in slightly less than half of textwidth) you can use an enumeration, and put the contents inside a two-column layout: %%% start example-1 \define[1]\aitemcmd{\inframed[width=1cm,align=flushrigh

Re: [NTG-context] Problems with itemize with several columns

2022-02-24 Thread fv leung via ntg-context
Avoid using \startformula \stopformula in itemize. Use \dfrac to get display style fraction. \defineenumeration [exercici] [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit, headcolor

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Luis Montgomery via ntg-context
eb 2022, at 11:28, Xavier B. via ntg-context < > ntg-context@ntg.nl> wrote: > > > > > > In my previous post [ > https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't > know the reason, but the attached code des not display very well in mailing &

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
know the reason, but the attached code des not display very well in mailing > > list. I put it here: > > > > \defineenumeration > > [exercici] > > [alternative=serried, before={\blank[medium]\testpage[1]}, > > text={Exercici}, stopper={.\space}, width=fit, heads

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Bruce Horrocks via ntg-context
> On 23 Feb 2022, at 11:28, Xavier B. via ntg-context > wrote: > > In my previous post > [https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know > the reason, but the attached code des not display very well in mailing list. > I put it here: &g

Re: [NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
In my previous post [https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know the reason, but the attached code des not display very well in mailing list. I put it here: \defineenumeration [exercici] [alternative=serried, before={\blank[medium]\testpage[1]}, text

[NTG-context] placelist created by defineenumeration fails in numbered headings

2022-01-20 Thread Youssef Cherem via ntg-context
That pretty much sums it up: if I change \title to \chapter, for example, the list is generated only if I set the option criterium=chapter, for example. Is criterium really necessary in this case? ``` \defineenumeration [Exercício] [alternative=top, before=\blank, after=\blank, between=\blank

[NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread Jan-Erik Hägglöf via ntg-context
Hi! I’ve been doing this in my exams to define exercises in a structural way. \defineenumeration[uppgift] \setupenumerations[uppgift][alternative=left,width=1cm,text= ,after={\blank[2*big]}] \starttext \startuppgift Here comes the exercise \stopuppgift \stoptext I want a simple solution

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-31 Thread Wolfgang Schuster via ntg-context
in the block. Another possible method is to shift the title to the right with the \offset command and increase the distance between the title and the following text. \defineprocessor [upright] [style=normal] \defineconversionset [upright-n] [] [upright->n] \defineenumeration   [rem

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-31 Thread Mikael Sundqvist via ntg-context
: > Can solve with > > > \defineenumeration[remark][ > alternative=serried, > width=fit, > text={{\it Remark}}, > headstyle=\tf, > indenting={first,medium}, > %headcommand=\groupedcommand{\hskip 1em}{}, > ] > > > Mikael Sundqvist via ntg-context 於 2

Re: [NTG-context] Two questions on enumerations/indentation

2021-12-30 Thread fv leung via ntg-context
Can solve with \defineenumeration[remark][ alternative=serried, width=fit, text={{\it Remark}}, headstyle=\tf, indenting={first,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ] Mikael Sundqvist via ntg-context 於 2021年12月31日 週五 上午4:55寫道: > Hi, > > I have two questio

[NTG-context] Two questions on enumerations/indentation

2021-12-30 Thread Mikael Sundqvist via ntg-context
orrect way to (in the example below) get Remark in italic and the number upright? /Mikael \defineenumeration[remark][ alternative=serried, width=fit, text=Remark, headstyle=italic, indenting={yes,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ] \starttext \samplefile{tufte} \startremark

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread kauśika via ntg-context
On Saturday, November 20, 2021 8:34:52 PM IST Wolfgang Schuster wrote: > Provide a complete minimal example to increase your chances for an answer. > > Wolfgang I was inspecting this just now and figured out that in one of the \defineenumeration I was inheriting another enumeration bl

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread Wolfgang Schuster via ntg-context
kauśika via ntg-context schrieb am 20.11.2021 um 14:28: On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: Dear list, I have the following enumeration block. \defineenumeration[verse] \setupenumeration[verse] [alternative=leftmargin, text=, width=fit, distance=1em

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread kauśika via ntg-context
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote: > Dear list, > > I have the following enumeration block. > > \defineenumeration[verse] > \setupenumeration[verse] > [alternative=leftmargin, >text=, >width=fit, >distance=1em, >wa

[NTG-context] Enumeration numbering in the left margin

2021-11-19 Thread kauśika via ntg-context
Dear list, I have the following enumeration block. \defineenumeration[verse] \setupenumeration[verse] [alternative=leftmargin, text=, width=fit, distance=1em, way=bysection] I actually want to (flush) left align the enumeration's number inside the left margin and give it a blue

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Hans Hagen via ntg-context
][local=yes,nested=yes] \startmode[solution] \defineenumeration[solution][fancy setup...] \stopmode Then, in the main tex file: \startsolution ... \stopsolution By default, gives the version without solution. Compile with --mode=solution to get the version with solution. The same

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Aditya Mahajan via ntg-context
gt; > > > Then one authors the complete work in a single project, but you can > > > produce a variety of versions, depending on the mode chosen: > > > > > > \definemode[unabridged] > > > etc. > > > > > > Can one do this in conte

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
, depending on the mode chosen: \definemode[unabridged] etc. Can one do this in context? Yes! This is what I do (for solutions in homework assignments): \definebuffer[solution][local=yes,nested=yes] \startmode[solution] \defineenumeration[solution][fancy setup...] \stopmode Then, in the main

Re: [NTG-context] Can modes be used for content control?

2021-11-16 Thread Aditya Mahajan via ntg-context
n the mode chosen: > > \definemode[unabridged] > etc. > > Can one do this in context? Yes! This is what I do (for solutions in homework assignments): \definebuffer[solution][local=yes,nested=yes] \startmode[solution] \defineenumeration[solution][fancy setup...]

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
Here’s what I have now (result attached): \define[1]\ÜbungNrCmd{\inmargin{\offset[y=3em]{\rotate[rotation=90]{\SectionFont #1 \defineenumeration[Übung][ text=Übung, title=yes, titleleft=, titleright=, titledistance=-1em, titlestyle=\SectionFont, %numberstyle=\SectionFont

Re: [NTG-context] numbered exercises

2021-08-24 Thread Henning Hraban Ramm via ntg-context
t;>>> draw a blank. >>> >>> Use an enumeration. >> Thank you, but how can I define a title/caption for the enumeration and its >> reference? > > > \defineenumeration > [Exercise] > [text=Exercise, > title=yes, > titleleft

Re: [NTG-context] numbered exercises

2021-08-24 Thread Gavin via ntg-context
ion for the enumeration and its > reference? > Hi Hraban, Here’s an example from my textbook which might be helpful. I use this enumeration for example problems, but exercises could be similar. You have access to the rest of the textbook, so feel free to grab anything useful. -Gavin

Re: [NTG-context] numbered exercises

2021-08-24 Thread Wolfgang Schuster via ntg-context
not float. Which structure should I use for them? There must be an easy answer, but I draw a blank. Use an enumeration. Thank you, but how can I define a title/caption for the enumeration and its reference? \defineenumeration [Exercise] [text=Exercise, title=yes, titleleft

Re: [NTG-context] Strange behavior of a macro

2021-08-16 Thread Hans Hagen via ntg-context
{\math{\mathbb{N}}\autoinsertnextspace} \defineenumeration    [test]    [title=yes,     text={Test},     style=italic] \starttext \N \starttest \m{\forall n \in \N} \stoptest \stoptext tex error       > tex error on line 64 in file ./terminale_suites_2.tex: Use of \N doesn't match

[NTG-context] Strange behavior of a macro

2021-08-16 Thread Fabrice Couvreur via ntg-context
Hello, I don't understand why this macro works with this simple example but return the following error if I use it for chapters in my book. Thanks Fabrice \setupbodyfont [newcomputermodern-book,11pt] \unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace} \defineenumeration [test

Re: [NTG-context] Create an enumeration style

2021-08-09 Thread Wolfgang Schuster via ntg-context
; ... core-con.lua (line 1155): local ordinals = {     [...]     french = function(n)     if n == 1 then     return "er" +   else +   return "e"     end     end, } Then I tried to use the key alternative = serried but without success. This works f

Re: [NTG-context] Create an enumeration style

2021-08-08 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 08.08.2021 um 17:47: Hello, Is it possible to create an enumeration style to get this : 1 ^ {er} exemple 2 ^ {e} exemple 3 ^ {e} exemple The conversion needs a fix but this is how you can do it. \defineenumeration   [test]   [text

Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-28 Thread Fabrice Couvreur via ntg-context
s end with a dot both with a title > > and without title. How to do ? > > Thanks > > Fabrice > > > > [...] > > > You can create simple dummy environments to test the parameters. > > \defineenumeration >[grouptest] >[title=yes, >

Re: [NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Wolfgang Schuster via ntg-context
Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57: Hi, The name of the environment must always end with a dot both with a title and without title. How to do ? Thanks Fabrice [...] You can create simple dummy environments to test the parameters. \defineenumeration

[NTG-context] Question about \groupedcommand{}{}

2021-07-27 Thread Fabrice Couvreur via ntg-context
=\groupedcommand{}{\bf.}, width=broad] \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{}, style=italic] \starttext \startdefinition{With a title} \samplefile{lorem} \stopdefinition Without title but no dot after the name

Re: [NTG-context] Macro that does not work in an environment

2021-07-27 Thread Hans Hagen via ntg-context
On 7/27/2021 4:32 PM, Fabrice Couvreur via ntg-context wrote: Hello, How to make the macro work in the environment definition ? not sure what you want to achieve, maybe this? \protected\def\card#1{\m{\mfunction{Card}\thinspace#1}} \defineenumeration [définition] [text=Définition

[NTG-context] Macro that does not work in an environment

2021-07-27 Thread Fabrice Couvreur via ntg-context
Hello, How to make the macro work in the environment definition ? Thank you Fabrice \unexpanded\def\card#1{\math{\text{Card}\thinspace#1}} \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{.}, style=italic] \starttext

[NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
, background=color, backgroundcolor=lightgray, foregroundcolor=, foregroundstyle=] \setupenumerations [before={\blank}, after={\blank}, alternative=top, title=yes, titleleft={}, titleright={}, titlestyle=bold, width=broad] \defineenumeration [exercice] [text=Exercice

Re: [NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
foregroundstyle=] > > > \setupenumerations > [before={\blank}, >after={\blank}, >alternative=top, >title=yes, > titleleft={}, >titleright={}, >titlestyle=bold, >width=broad] > > \defineenumeration >[exercice]

[NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Fabrice Couvreur via ntg-context
={}, titlestyle=bold, width=broad] \defineenumeration [exercice] [text=Exercice, number=yes, numbercommand=\groupedcommand{}{.}, style=italic] \defineenumeration [solution] [text=Solution, headcommand=\ACFRAME, number=no, numbercommand=\groupedcommand{}{}, style

[NTG-context] Macro to write a letter with \ mathscript{}

2021-04-17 Thread Fabrice Couvreur
\setupbodyfont[modern] \setupenumerations [before={}, after={\blank}, alternative=serried, number=no, title=yes, titleleft={(}, titleright={)}, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition

[NTG-context] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
={)}, prefix=yes, prefixsegments=chapter, way=bychapter, titlestyle=bold, width=broad] \defineenumeration [definition] [text=Définition, number=no, headcommand=\groupedcommand{}{}, style=normal] \starttext \startdefinition \input knuth \stopdefinition

Re: [NTG-context] Title in enumeration not working?

2020-12-30 Thread Mikael Sundqvist
that should work. > > Best, > > Mikael > > On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian wrote: > >> Hi Mickael, >> >> Maybe this is what you want: >> >> \defineenumeration[example] >> [text=Example, >> title=yes

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
stopexample > > and that has been working before. Reading in setup-en.pdf, it also looks to > me as if that should work. > > Best, > > Mikael > > On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian <mailto:ota...@gmail.com>> wrote: > Hi Mickael, > >

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Mikael Sundqvist
, Mikael On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian wrote: > Hi Mickael, > > Maybe this is what you want: > > \defineenumeration[example] > [text=Example, > title=yes, > titleleft=, > titleright={.}, > ] > &

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mickael, Maybe this is what you want: \defineenumeration[example] [text=Example, title=yes, titleleft=, titleright={.}, ] \starttext \startexample{Title} This is a test. \stopexample \stoptext Of course is you say text=, then you get only

[NTG-context] Title in enumeration not working?

2020-12-21 Thread Mikael Sundqvist
Hi, Has anything changed with titles and enumerations? I expected a title "Title" with the following setup. \defineenumeration[example][ text=Example, title=yes, ] \starttext \startexample[title={Title}] This is a test. \stopexample \stoptext But it does not show up

[NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
Hi there, in my document(s) I have enumerations (created with \defineenumeration) and "typing"s (created with \definetyping) and I need to give a specific layout to them. In particular, I want to add textbackground (created with \definetextbackground) and sometimes a sideba

Re: [NTG-context] Piecewise margin line

2020-11-20 Thread Johann Birnick
ssi > > > > Thank you! I have two more questions: > > > > 1. Where can I find a documentation for this command? Even Google finds > > nothing. > > I took it from the "Commands" manual. You can find it here: > > ./tex/texmf-contex

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread mf
at the end. Here is a screenshot: https://s12.directupload.net/images/201120/lfmwp5lh.png The theorem is a normal enumeration. Like this: \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] \startsidebar and \stopsidebar should be called in horizontal mode, since you might wa

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
, background=color, backgroundcolor=white, ] %%% \defineenumeration[proclaim] [text=, before={\starttextbackground[leftbartext]}, after={\stoptextbackground}, style=slanted, title=yes, titleleft=, titleright

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Johann Birnick
ions of my enumeration messes up whitespace at the end. Here is a screenshot: https://s12.directupload.net/images/201120/lfmwp5lh.png The theorem is a normal enumeration. Like this: \defineenumeration[Theorem][before=\startsidebar, after=stopsidebar] I would greatly appreciate your help. Thank you! Joh

[NTG-context] keeping content chunks on same page

2020-08-24 Thread Mike Cooper
Just about to have these homework files finished! My final problem (I hope) is keeping question/answer blocks together. The questions are currently defined via \defineenumeration with a \testpage (see below). I fiddled with the \testpage and found that \testpage[6] gave me the best results

  1   2   3   4   5   6   7   8   9   >